<?php  if (!defined("IS_INITPHP")) exit("Access Denied!");  /* INITPHP Version 1.0 ,Create on 2015-12-14 18:08:51, compiled from D:\chendeben\zendwork\huodongxun/app/template/huodongxun/manage/active/reginfo.html */ ?>
<div class="row">
	<div class="col-xs-12">
		<div class="box">
			<div class="box-header">
				<h3 class="box-title">活动列表</h3>
			</div>
			<!-- /.box-header -->
			<div class="box-body">
				<table id="datatable" class="table table-bordered table-striped">
					<thead>
						<tr>
							<th>ID</th>
							<th>字段名</th>
							<th>添加时间</th>
							<th>审核状态</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
					<?php foreach ($data as $k=>$v) { ?>
						<tr>
							<td><?php echo $v['title'];?></td>
							<td><?php echo date("Y-m-d H:i:s",$v['start_time']); ?> 到 <?php echo date("Y-m-d H:i:s",$v['end_time']); ?></td>
							<td><?php echo date("Y-m-d H:i:s",$v['add_time']); ?></td>
							<td><?php if($v['status']==0){echo "未审核";}elseif($v['status']==1){echo "审核通过";}elseif($v['status']==2){echo "审核不通过";} ?></td>
							<td>X</td>
						</tr>
						<?php } ?>
					</tbody>
				</table>
			</div>
			<!-- /.box-body -->
		</div>
		<!-- /.box -->
	</div>
	<!-- /.col -->
</div>
<script src="/adminlte/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="/adminlte/plugins/datatables/dataTables.bootstrap.min.js"></script>
<!-- SlimScroll -->
<script src="/adminlte/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="/adminlte/plugins/fastclick/fastclick.min.js"></script>
<!-- /.row -->
<script>
      $(function () {
        $('#datatable').DataTable({
        	"oLanguage": {
        		"sLengthMenu": "每页显示 _MENU_ 条记录",
        		"sZeroRecords": "抱歉， 没有找到",
        		"sInfo": "从 _START_ 到 _END_ /共 _TOTAL_ 条数据",
        		"sInfoEmpty": "没有数据",
        		"sInfoFiltered": "(从 _MAX_ 条数据中检索)",
        		"oPaginate": {
        		"sFirst": "首页",
        		"sPrevious": "前一页",
        		"sNext": "后一页",
        		"sLast": "尾页"
        		},"sZeroRecords": "没有检索到数据",
        	},
        "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "全部"]],
         "paging": true,
         "lengthChange": true,
         "searching": true,
         "ordering": true,
         "info": true,
         "autoWidth": false
        });
      });
</script>